package com.edu.javaweb.service.impl;

import com.edu.javaweb.mapper.HolidayInformationMapper;
import com.edu.javaweb.pojo.HolidayInformation;
import com.edu.javaweb.service.HolidayInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HolidayInformationServiceImpl implements HolidayInformationService {
    @Autowired
    private HolidayInformationMapper holidayInformationMapper;
    @Override
    public List<HolidayInformation> findAll() {
        return holidayInformationMapper.findAll();
    }

    @Override
    public void insHolidayInformation(HolidayInformation holidayInformation) {
        holidayInformationMapper.insHolidayInformation(holidayInformation);
    }

    @Override
    public void upHolidayInformation(HolidayInformation holidayInformation) {
        holidayInformationMapper.upHolidayInformation(holidayInformation);
    }

    @Override
    public void delById(Integer id) {
        holidayInformationMapper.delById(id);
    }

    @Override
    public HolidayInformation findById(Integer id) {
        return holidayInformationMapper.findById(id);
    }
}
